<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>雪碧图</title>
    <style>
        div {
            width: 80px;
            height: 80px;
            background: url(./img/sprite_right.png) no-repeat black -1px -277px;
        }

        div:hover {
            background-position: -277px -1px;
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>